<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> -->
<!--     <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge"> -->
    <title>共青团第二学堂</title>
    <link rel="stylesheet" href="$gqt/admin/css/layui.css">   
    <script src="http://lib.sinaapp.com/js/jquery/1.4.2/jquery.min.js"></script>
</head>

<body class="layui-layout-body" onload="manage()">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo">共青团学分管理系统后台</div>
            <!-- 头部区域（可配合layui已有的水平导航） -->
            <!-- <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item">
                    <a href="">控制台</a>
                </li>
                <li class="layui-nav-item">
                    <a href="">管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="">用户</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">其它系统</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="">邮件管理</a>
                        </dd>
                        <dd>
                            <a href="">消息管理</a>
                        </dd>
                        <dd>
                            <a href="">授权管理</a>
                        </dd>
                    </dl>
                </li>
            </ul> -->
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="http://t.cn/RCzsdCq" class="layui-nav-img">{$name}
                    </a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;"onclick="basic_info()">基本资料</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="{:url('admin/sign/logout')}">注销</a>
                </li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item">
                        <a href="javascript:;">{$score_manage}</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" onclick="score_apply()">{$score_apply}</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" onclick="score_pass()">{$score_pass}</a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a href="javascript:;">{$pro_manage}</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" onclick="pro_apply()">{$pro_apply}</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" onclick="pro_pass()">{$pro_pass}</a>
                            </dd>
                            <dd>
                                <a "javascript:;" onclick="pro_success()">{$pro_success}</a>
                            </dd>
                            <dd>
                                <a "javascript:;" onclick="pro_build()">{$pro_build}</a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a  href="javascript:;"  >{$user_manage}</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" onclick="user_info()">{$user_info}</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" onclick="teacher_info()">{$teacher_info}</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" onclick="manage_add()">{$manage_add}</a>
                            </dd>
                        </dl>
                    </li>
                    
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">{$info_manage}</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" onclick="announce()">{$announce}</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" onclick="operation()">{$operation}</a>
                            </dd>
                        </dl>
                    </li>
                   <!--  <li class="layui-nav-item">
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child">
                            
                            <dd>
                                <a href="javascript:;" onclick="excel_export()"></a>
                            </dd>
                        </dl>
                    </li> -->
                    <li class="layui-nav-item">
                        <a href="javascript:;">{$statistical_query}</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" onclick="score_query()">{$score_query}</a>
                            </dd>

                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
                            <iframe id="aaa" name="aaa" width="100%" height="100%" src=""></iframe>                
        </div>

        <!-- </div> -->
        <div class="layui-footer">
            <!-- 底部固定区域 -->
            <!-- © layui.com - 底部固定区域 -->
        </div>
    </div>
    <script src="$gqt/admin/js/layui.js"></script>
        <script type="text/javascript">
        function manage() {
               $(document).ready(function() {
                   $("a").each(function() {
                    // alert($(this).html());
                        if ($.trim($(this).html())=="") {
                            $(this).parent().remove();
                        };
                   });
                   $("a").each(function() {
                    // alert($(this).html());
                        if ($.trim($(this).html())=="<span class=\"layui-nav-more\"></span>") {
                            $(this).parent().remove();
                        };
                   });
               });
            }
        </script>
    <script>

        //JavaScript代码区域
            layui.use('element', function () {
                var element = layui.element;

            });
            //学生信息
            function user_info() {
                document.getElementById("aaa").src = "{$user_info_r}";
                }
            //教师信息
            function teacher_info(){
                document.getElementById("aaa").src = "{$teacher_info_r}";
            }
            //管理员添加
            function manage_add()
            {
                document.getElementById("aaa").src = "{$manage_add_r}";
            }
            //学分申请
            function score_apply(){
                document.getElementById("aaa").src = "{$score_apply_r}";
            }
            //学分申请通过
            function score_pass(){
                document.getElementById("aaa").src = "{$score_pass_r}";
            }
            //学分查询
            function score_query(){
                document.getElementById("aaa").src = "{$score_query_r}";
            }
            //消息发布
            function announce() {
                document.getElementById("aaa").src = "{$announce_r}";
            }
            //消息操作
             function operation() {
                document.getElementById("aaa").src = "{$operation_r}";
            }
            //导出
            // function excel_export() {
            //         document.getElementById("aaa").src = "";
            //     }
            //项目管理
            //项目申请
            function pro_apply() {
                    document.getElementById("aaa").src = "{$pro_apply_r}";
                }
            //项目通过
             function pro_pass() {
                    document.getElementById("aaa").src = "{$pro_pass_r}";
                }
            //项目结题
            function pro_success() {
                    document.getElementById("aaa").src = "{$pro_success_r}";
                }
            //项目创建
            function pro_build() {
                    document.getElementById("aaa").src = "{$pro_build_r}";
                }

            //综合查询
            function score_query() {
                    document.getElementById("aaa").src = "{$score_query_r}";
                }
            //基本信息    
            function basic_info(){
                    document.getElementById("aaa").src = "/GQT/public/admin/index/basic_info";
            }         
            
    </script>

</body>
</html>